import axios from 'axios';

const http=axios.create({
    // baseURL:'http://43.139.2.162:8080/',
    // timeout:5000,
})

//请求拦截
http.interceptors.request.use((config)=>{
    return config;
},err=>Promise.reject(err))

//响应拦截
http.interceptors.response.use((response)=>{
    return response;
},err=>Promise.reject(err))

//暴露包装好的axios
export default http